<div class="productCategories form">
<?php echo $this->ExtendedForm->create('ProductCategory', array('class' => 'form-horizontal', 'novalidate' => 'novalidate'));?>
    <fieldset>
        <legend><?php echo __d('admin', 'Add Product Category'); ?></legend>
	<?php
		if(isset($this->request->params['named']['product_brand_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('product_brand_id', array_merge(array('label' => __d('admin', 'Brand')), array('options' => $productBrandsSelect, 'empty' => '- ' . __d('admin', 'Choose a Brand') . ' -')));
		if(isset($this->request->params['named']['product_brand_id'])) echo '</div>';
		
		if(isset($this->request->params['named']['category_name'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('category_name', array_merge(array('label' => __d('admin', 'Category Name'))));
		if(isset($this->request->params['named']['category_name'])) echo '</div>';

		if(isset($this->request->params['named']['category_name_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('category_name_en', array_merge(array('label' => __d('admin', 'Category Name En'))));
		if(isset($this->request->params['named']['category_name_en'])) echo '</div>';

        if(isset($this->request->params['named']['short_des'])) echo '<div style="display: none;">';
		echo $this->Form->input('ProductCategory.short_des', array_merge(array('maxlength'=> '500', 'type' => 'textarea', 'label' => __d('admin', 'Short Des'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['short_des'])) echo '</div>';

		if(isset($this->request->params['named']['short_des_en'])) echo '<div style="display: none;">';
		echo $this->Form->input('ProductCategory.short_des_en', array_merge(array('maxlength'=> '500', 'type' => 'textarea', 'label' => __d('admin', 'Short Des En'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['short_des_en'])) echo '</div>';
        
        if(isset($this->request->params['named']['category_image'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('category_image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Category Image (Hinh Vuong 300x300 hay 400x400)'))));
		if(isset($this->request->params['named']['category_image'])) echo '</div>';
	?>
    </fieldset>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save ProductCategory'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>